<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
		<meta charset="utf-8" />
		<meta name="description" content="" />
		<link rel="stylesheet" href="admin/assets/css/bootstrap.min.css" />
		<link rel="stylesheet" href="admin/assets/css/dropzone.css" />
		<link rel="stylesheet" href="admin/assets/css/font-awesome.min.css" />
		<link rel="stylesheet" href="admin/assets/css/ace-fonts.css" />
		<link rel="stylesheet" href="admin/assets/css/ace.min.css" id="main-ace-style" />
		<title>test</title>
		<script src="admin/assets/js/ace-extra.min.js"></script>
	</head>
	<body class="no-skin" style="background: #FFFFFF;">
		<div class="page-content">
						<div>
							<span>已经上传</span>
							<div>
								<img src="./upload/logo/jnEFJHgQe3.jpg"/>
							</div>
						</div>
					<!-- /section:settings.box -->
					<br /><br /><br />
					<div class="page-content-area">
						<span>重新上传,将会覆盖</span>
						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->
								<div>
									<form method="post" action="#" class="dropzone" id="dropzone">
										{{ csrf_field() }}
										<div class="fallback">
											<input name="file" type="file" multiple="" />
										</div>
									</form>
								</div><!-- PAGE CONTENT ENDS -->
							</div><!-- /.col -->
						</div><!-- /.row -->
					</div><!-- /.page-content-area -->
				</div><!-- /.page-content -->
	</body>
	
		<script type="text/javascript">
			window.jQuery || document.write("<script src='admin/assets/js/jquery.min.js'>"+"<"+"/script>");
		</script>

		<!-- <![endif]-->

		<!--[if IE]>
		<script type="text/javascript">
		 window.jQuery || document.write("<script src='assets/js/jquery1x.min.js'>"+"<"+"/script>");
		</script>
		<![endif]-->
		<script type="text/javascript">
			if('ontouchstart' in document.documentElement) document.write("<script src='admin/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
		</script>
		<script src="admin/assets/js/bootstrap.min.js"></script>

		<!-- page specific plugin scripts -->
		<script src="admin/assets/js/dropzone.min.js"></script>

		<!-- ace scripts -->
		<script src="admin/assets/js/ace-elements.min.js"></script>
		<script src="admin/assets/js/ace.min.js"></script>

		<!-- inline scripts related to this page -->
		<script type="text/javascript">
			jQuery(function($){
				Dropzone.autoDiscover = false;
				try {
				  var myDropzone = new Dropzone("#dropzone" , {
				    paramName: "file", // The name that will be used to transfer the file
				    maxFilesize: 1, // MB
				    maxFiles:1,
					addRemoveLinks : true,
					dictInvalidInputType :"文件类型不支付",
					acceptedFiles :"image/*",
					dictDefaultMessage :
					'<span class="bigger-150 bolder"><i class="ace-icon fa fa-caret-right red"></i> 从电脑上拖拽文件到这里</span>  \
					<span class="smaller-80 grey">(或者点击这里上传文件)</span> <br /> \
					<i class="upload-icon ace-icon fa fa-cloud-upload blue fa-3x"></i>',
					dictResponseError: '上传错误!',
					//change the previewTemplate to use Bootstrap progress bars
					previewTemplate: "<div class=\"dz-preview dz-file-preview\">\n  <div class=\"dz-details\">\n    <div class=\"dz-filename\"><span data-dz-name></span></div>\n    <div class=\"dz-size\" data-dz-size></div>\n    <img data-dz-thumbnail />\n  </div>\n  <div class=\"progress progress-small progress-striped active\"><div class=\"progress-bar progress-bar-success\" data-dz-uploadprogress></div></div>\n  <div class=\"dz-success-mark\"><span></span></div>\n  <div class=\"dz-error-mark\"><span></span></div>\n  <div class=\"dz-error-message\"><span data-dz-errormessage></span></div>\n</div>"
				  });
				} catch(e) {
				  alert('Dropzone.js不支持太旧的浏览器!');
				}
			
			});
		</script>
</html>
